package com.outlandr.irc.client;

import java.util.ArrayList;
import java.util.List;

public class Channel extends Room {
	
	private String channelTopic; // Do we need channel topic here?
	
	private List<String> members = new ArrayList<String>();
	

	public Channel(String name) {
		super(name);
	}
	
	public void setChannelTopic(String channelTopic) {
		this.channelTopic = channelTopic;
	}


	public String getName() {
		return name;
	}

	public void addMember(String member) {
		assert member != null && !(member.isEmpty());
		members.add(member);
	}
	
	public String[] getMembers() {
		return members.toArray(new String[members.size()]);
	}

	@Override
	public String toString() {
		return "Channel: " + super.toString();
	}
	
}
